package com.wsx.sky.gateway.bean;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author wangshuaixin
 * @Title: com.wsx.sky.gateway.bean.GateData
 * @Description: TODO
 * @date 2018/12/07
 */
@NoArgsConstructor
public class GateData implements Serializable {

    @Setter @Getter private int code = 200;
    @Setter @Getter private Object datas;

    public GateData(int code) {
        this.code = code;
    }

    public GateData buildDatas(Object datas) {
        this.datas = datas;
        return this;
    }
}
